home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / elk-2_0.lha / elk-2.0 / lib / xt / build < prev    next >
Text File  |  1992-11-02  |  2KB  |  113 lines

  1. . ../../config/system
  2. . ../../config/site
  3.  
  4. if [ _$load_obj != _ ]; then more_targets=xt.pre; fi
  5.  
  6. echo Building Makefile.local...
  7. cat <<EOT >Makefile.local
  8. # This Makefile was produced by running ./build in this directory.
  9.  
  10. SHELL=/bin/sh
  11.  
  12. CC= ${cc-cc}
  13. CFLAGS= $cflags $obj_cflags
  14. LINTFLAGS= $lintflags
  15.  
  16. INC=    ../../include
  17.  
  18. H=    \$(INC)/config.h\\
  19.     \$(INC)/param.h\\
  20.     \$(INC)/object.h\\
  21.     \$(INC)/extern.h\\
  22.     \$(INC)/misc.h\\
  23.     \$(INC)/stkmem.h\\
  24.     \$(INC)/cstring.h\\
  25.     ../util/objects.h\\
  26.     ../util/symbol.h\\
  27.     ../xlib/xlib.h\\
  28.     xt.h
  29.  
  30. C=    accelerator.c\\
  31.     action.c\\
  32.     callback.c\\
  33.     class.c\\
  34.     context.c\\
  35.     converter.c\\
  36.     error.c\\
  37.     function.c\\
  38.     identifier.c\\
  39.     init.c\\
  40.     objects.c\\
  41.     popup.c\\
  42.     resource.c\\
  43.     translation.c\\
  44.     widget.c
  45.  
  46. O=    accelerator.o\\
  47.     action.o\\
  48.     callback.o\\
  49.     class.o\\
  50.     context.o\\
  51.     converter.o\\
  52.     error.o\\
  53.     function.o\\
  54.     identifier.o\\
  55.     init.o\\
  56.     objects.o\\
  57.     popup.o\\
  58.     resource.o\\
  59.     translation.o\\
  60.     widget.o
  61.  
  62. all: \$(O) $more_targets
  63.  
  64. .c.o:
  65.     \$(CC) \$(CFLAGS) -I\$(INC) $x11_incl -c \$<
  66.  
  67. accelerator.o:    \$(H) accelerator.c
  68. action.o:    \$(H) action.c
  69. callback.o:    \$(H) callback.c
  70. class.o:    \$(H) class.c
  71. context.o:    \$(H) context.c
  72. converter.o:    \$(H) converter.c
  73. error.o:    \$(H) error.c
  74. function.o:    \$(H) function.c
  75. identifier.o:    \$(H) identifier.c
  76. init.o:        \$(H) init.c
  77. objects.o:    \$(H) objects.c
  78. popup.o:    \$(H) popup.c
  79. resource.o:    \$(H) resource.c
  80. translation.o:    \$(H) translation.c
  81. widget.o:    \$(H) widget.c
  82.  
  83. EOT
  84. if [ _$load_obj != _ ]; then
  85. cat <<EOT >>Makefile.local
  86. xt.pre: \$(O) ../xlib/xlib.pre
  87.     ../../scripts/linkext.$load_obj \$@ \$(O) $libxt $libxmu \\
  88.         ../xlib/xlib.pre $libxlib
  89.  
  90. install: xt.pre
  91.     -@if [ ! -d $lib_dir ]; then \\
  92.         echo mkdir $lib_dir; \\
  93.         mkdir $lib_dir; \\
  94.     fi
  95.     cp xt.pre $lib_dir/xt.o
  96. EOT
  97. else
  98. cat <<EOT >>Makefile.local
  99. install:
  100. EOT
  101. fi
  102. cat <<EOT >>Makefile.local
  103.  
  104. lint:
  105.     lint \$(LINTFLAGS) -I\$(INC) $x11_incl \$(C)
  106.  
  107. clean:
  108.     rm -f *.o xt.pre core
  109.  
  110. distclean:
  111.     rm -f *.o xt.pre core lint.out Makefile.local
  112. EOT
  113.